package gov.mmgt.netmanager.ui;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.Button;

public class SecureSettingPanle extends Composite {
	private Text oldPassword;
	private Text newPassword;
	private Text confirmNewPassword;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public SecureSettingPanle(Composite parent, int style) {
		super(parent, style);
		this.setBounds(0, 0, 387, 345);
		
		CLabel label = new CLabel(this, SWT.NONE);
		label.setAlignment(SWT.RIGHT);
		label.setBounds(58, 10, 67, 21);
		label.setText("原密码");
		
		oldPassword = new Text(this, SWT.BORDER | SWT.PASSWORD);
		oldPassword.setBounds(131, 10, 199, 21);
		
		CLabel label_1 = new CLabel(this, SWT.NONE);
		label_1.setAlignment(SWT.RIGHT);
		label_1.setBounds(58, 37, 67, 21);
		label_1.setText("新密码");
		
		newPassword = new Text(this, SWT.BORDER | SWT.PASSWORD);
		newPassword.setBounds(131, 37, 199, 21);
		
		CLabel label_2 = new CLabel(this, SWT.NONE);
		label_2.setAlignment(SWT.RIGHT);
		label_2.setBounds(58, 64, 67, 21);
		label_2.setText("确认新密码");
		
		confirmNewPassword = new Text(this, SWT.BORDER | SWT.PASSWORD);
		confirmNewPassword.setBounds(131, 64, 199, 21);
		
		Button button = new Button(this, SWT.NONE);
		button.setBounds(250, 100, 80, 25);
		button.setText("保存");

	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

}
